#-*- coding:utf-8 -*-
import sqlconnect

def deletezigbeeA(client):
    db = sqlconnect.connect()
    bluemac = db.cursor()
    sql = "delete from zigbeeA where client = %s"
    bluemac.execute(sql, [client])
    db.commit()
    print 'delete', client
    db.close()

def deletezigbeeinfo(addr):
    db = sqlconnect.connect()
    bluemac = db.cursor()
    sql = "delete from zigbee_info where addr = %s"
    bluemac.execute(sql, [addr])
    db.commit()
    print 'delete', addr
    db.close()
